﻿CREATE TABLE [dbo].[ProductType]
(
	[Id] INT NOT NULL PRIMARY KEY IDENTITY, 
    [Name] NVARCHAR(50) NULL, 
    [Parent] INT NULL, 
    [Sort] INT NULL 
)

GO

EXEC sp_addextendedproperty @name = N'MS_Description',
    @value = N'产品分类ID',
    @level0type = N'SCHEMA',
    @level0name = N'dbo',
    @level1type = N'TABLE',
    @level1name = N'ProductType',
    @level2type = N'COLUMN',
    @level2name = N'Id'
GO
EXEC sp_addextendedproperty @name = N'MS_Description',
    @value = N'分类名称',
    @level0type = N'SCHEMA',
    @level0name = N'dbo',
    @level1type = N'TABLE',
    @level1name = N'ProductType',
    @level2type = N'COLUMN',
    @level2name = N'Name'
GO
EXEC sp_addextendedproperty @name = N'MS_Description',
    @value = N'分类父级ID',
    @level0type = N'SCHEMA',
    @level0name = N'dbo',
    @level1type = N'TABLE',
    @level1name = N'ProductType',
    @level2type = N'COLUMN',
    @level2name = N'Parent'
GO
EXEC sp_addextendedproperty @name = N'MS_Description',
    @value = N'分类排序序号',
    @level0type = N'SCHEMA',
    @level0name = N'dbo',
    @level1type = N'TABLE',
    @level1name = N'ProductType',
    @level2type = N'COLUMN',
    @level2name = N'Sort'